<?php
 //var_dump(intval(new stdClass));//报错
 $obj=new class{};
 var_dump(floatval($obj));//报错
 